﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Reviewer.Entities.Services
{

    /// <summary>
    /// Front Page Post Service Interface
    /// </summary>
    [ServiceContract(Namespace = "Reviewer.Services")]
    public interface IFrontPageTopService : IDisposable
    {
        /// <summary>
        /// Finds the specified max results.
        /// </summary>
        /// <param name="maxResults">The max results.</param>
        /// <returns></returns>
        ICollection<FrontPageTop> Find(int maxResults);
        /// <summary>
        /// Finds the specified id.
        /// </summary>
        /// <param name="id">The id.</param>
        /// <returns></returns>
        FrontPageTop Find(Guid id);
    }

    /// <summary>
    /// Front Page Post Administration Service Interface
    /// </summary>
    [ServiceContract(Namespace = "Reviewer.Services")]
    public interface IFrontPageTopAdminService : IDisposable
    {
        /// <summary>
        /// Saves the specified post.
        /// </summary>
        /// <param name="post">The post.</param>
        /// <returns></returns>
        FrontPageTop Save(FrontPageTop post);

        /// <summary>
        /// Deletes the specified id.
        /// </summary>
        /// <param name="id">The id.</param>
        void Delete(Guid id);
    }

}
